export default function (opt = {}) {
    console.log(opt,'opt');
    return {
        color: ['#579eee','#ec9537'],
        xAxis: {
            type: 'category',
            splitLine: {
                show: true,
                lineStyle: {
                    color: '#E5E9ED'
                }
            },
            data: opt.xAxis||['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
        },
        yAxis: {
            type: 'value'
        },
        grid: {
            left: '5%',
            right: '1%'
        },
        tooltip: {
            trigger: 'axis',
        },
        legend: {
            right: '0%'
        },
        series: [
            {
                name: '分子项目/分母项目（%）',
                symbol: 'none',
                data: opt.accountData || [],
                type: 'line',
                smooth: true
            },
            {
                name: '均值',
                symbol: 'none',
                data: opt.relativeData || [],
                type: 'line',
                smooth: true
            }
        ]
    };
}